
			<div class="shopMainbg">
				<div class="shopMain" id="shopmain">

					<!--热门活动 -->

					<div class="am-container">
					
                     <div class="sale-mt">
		                   <i></i>
		                   <em class="sale-title">限时秒杀</em>
		                   <div class="s-time" id="countdown">
			                    <span class="hh">01</span>
			                    <span class="mm">20</span>
			                    <span class="ss">59</span>
		                   </div>
	                  </div>

					
					  <div class="am-g am-g-fixed sale">
						<div class="am-u-sm-3 sale-item">
							<div class="s-img">
								<a href="# "><img src="<?php echo base_url(),FRONT_DIR?>images/sale3.jpg" /></a>
							</div>
                           <div class="s-info">
                           	   <a href="#"><p class="s-title">ZEK 原味海苔</p></a>
                           	   <div class="s-price">￥<b>9.90</b>
                           	   	  <a class="s-buy" href="#">秒杀</a>
                           	   </div>                          	  
                           </div>								
						</div>
						
						<div class="am-u-sm-3 sale-item">
							<div class="s-img">
								<a href="# "><img src="<?php echo base_url(),FRONT_DIR?>images/sale2.jpg" /></a>
							</div>
                           <div class="s-info">
                           	   <a href="#"><p class="s-title">ZEK 原味海苔</p></a>
                           	   <div class="s-price">￥<b>9.90</b>
                           	   	  <a class="s-buy" href="#">秒杀</a>
                           	   </div>                          	  
                           </div>								
						</div>					
						
						<div class="am-u-sm-3 sale-item">
							<div class="s-img">
								<a href="# "><img src="<?php echo base_url(),FRONT_DIR?>images/sale1.jpg" /></a>
							</div>
                           <div class="s-info">
                           	   <a href="#"><p class="s-title">ZEK 原味海苔</p></a>
                           	   <div class="s-price">￥<b>9.90</b>
                           	   	  <a class="s-buy" href="#">秒杀</a>
                           	   </div>                          	  
                           </div>								
						</div>
						
						<div class="am-u-sm-3 sale-item">
							<div class="s-img">
								<a href="# "><img src="<?php echo base_url(),FRONT_DIR?>images/sale2.jpg " /></a>
							</div>
                           <div class="s-info">
                           	   <a href="#"><p class="s-title">ZEK 原味海苔</p></a>
                           	   <div class="s-price">￥<b>9.90</b>
                           	   	  <a class="s-buy" href="#">秒杀</a>
                           	   </div>                          	  
                           </div>								
						</div>
						
					  </div>
                   </div>
					<div class="clear "></div>
					
			<?php if(!empty($cates)):?>
			<?php foreach ($cates as $k => $v):?>
            <div class="f1">
					<div class="am-container " >
						<div class="shopTitle ">
							<h4 class="floor-title"><?php echo $v['cat_name'];?></h4>
							<div class="floor-subtitle"><em class="am-icon-caret-left"></em><h3><?php echo $v['cat_desc'];?></h3></div>
							<div class="today-brands " style="right:0px ;top:13px;">
							<?php if(!empty($v['child'])):?>
							<?php foreach($v['child'] as $k1 => $v1) :?>
								<?php if($k1==(count($v['child'])-1)):?>
								<a href="<?php echo base_url();?>goods/lists?id=<?php echo$v1['cat_id'];?> "><?php echo $v1['cat_name'];?></a>
								<?php else:?>
								<a href="<?php echo base_url();?>goods/lists?id=<?php echo$v1['cat_id'];?> "><?php echo $v1['cat_name'];?></a>|
								<?php endif;?>
							<?php endforeach;?>  
							<?php endif;?>
							</div>

						</div>
					</div>
					
					<div class="am-g am-g-fixed floodSix ">
						<?php
						$catgoods = $this->goods_model->catGoods($v['cat_id']);
						
					
						
						?>
				
					 <?php foreach($catgoods as $ck=>$cv):?>
					<?php
						$imgs = explode(',',$cv['goods_img']);
						$good_imgfile = pathinfo($imgs[0]);
						$filename =$good_imgfile["filename"].'_thumb'.'.';
						$img_name =$filename.$good_imgfile["extension"];
					
					?>
						<li>
						<div class="am-u-md-2 am-u-lg-2 text-three">
							<div class="boxLi"></div>
							<div class="outer-con ">
								<div class="title ">
									<?php if(mb_strlen($cv['goods_name']) >12):?><?php echo mb_substr($cv['goods_name'],0,12),'......';?><?php else:?><?php echo $cv['goods_name'];?><?php endif;?>
								</div>								
								<div class="sub-title ">
									¥<?php echo $cv['shop_price'];?>
								</div>
								
							</div>
							<a href="<?php echo base_url(),'goods/index?id=',$cv['goods_id'];?>"><img src="<?php echo base_url(),'public/uploads/goods_thumb/',$img_name;?>" /></a>
						</div>
						</li>
					<?php endforeach;?>
										
					</div>

					<div class="clear "></div>
            </div>
             <?php endforeach;?>
			<?php endif;?>
            
            
            
					<!-- footer start -->
						<?php $this->load->view('public/footer.html');?>
					<!-- footer end -->
				</div>
			</div>
		</div>
		</div>

		
		<!-- 右边侧边栏 start -->
			<?php $this->load->view('public/right-menu.html');?>
		<!-- 右边侧边栏 end -->
		<script>
			window.jQuery || document.write('<script src="<?php echo base_url(),FRONT_DIR?>js/jquery.min.js "><\/script>');
		</script>
		<script type="text/javascript " src="<?php echo base_url(),FRONT_DIR?>js/quick_links.js "></script>
	</body>

</html>